{% extends "base/base.html" %}
{% import "macro/display.html" as display -%}
{% block title %}Oneliner{% endblock %}

{% block main %}
<h2><img class="icon_header" src="{{ MEDIA_URL }}user_green.png" alt="" />Oneliner History</h2>

<div class="olh_wrapper">

{% for line in object_list %}{% cache 86400 mkstr(olhistory, line.id) %}
<div class="olh_item">
<div class="olh_user">
    <p>{{ display.user(line.user) }}<br />
    {{ line.added|date("j M y H:i") }}</p>
</div>

<div class="olh_message">
    <p>{{ line.message|urlize|wordwrap(100)|smileys|oneliner_mediaparse|bbcode_oneliner|dv_urlize|safe }}</p>
</div>
</div>{% endcache %}
{% endfor %}

</div>

<div class="olh_pages">
<p>Pages:
{% for p in page_range[:20] %}
{% if page == p %}<b>{{ p }}</b>{% else %}<a href="{{ url("dv-oneliner") }}?page={{ p }}">{{ p }}</a> {% endif %}
{% endfor %}</p>
</div>
{% endblock %}

